package com.runtime.hongyunmanage.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.runtime.hongyunmanage.domain.Message;
import com.runtime.hongyunmanage.domain.vo.OrdersVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface OrdersMapper extends BaseMapper<OrdersVo> {
    List<OrdersVo> selectOrder(@Param("current") int current,@Param("size") int size);
    int selectone(@Param("createdAt") String createdAt,@Param("endAt") String endAt,@Param("username") String username,@Param("status") String status);
    List<OrdersVo> selectroleuserAcc(@Param("createdAt") String createdAt,@Param("endAt") String endAt,@Param("username") String username,@Param("status") String status,@Param("current") int current,@Param("size") int size );

    Integer MessageCount();
    List<Message> selectMessage(@Param("current") int current, @Param("size") int size);
    Integer totalMessage();
    Integer updateStatue(Integer messageId);
    Integer deleteMessage(Integer messageId);
    Integer markAll(Integer param);
    boolean confirmShipment(@Param("orderId") Integer orderId,@Param("trackingNumber") String trackingNumber,@Param("courierCompany")String courierCompany);
}
